//imagePlayer 工具
export const markArrToMark = (arr) => {
  let _mark = {};
  const lengthOf24 = Math.floor((arr?.length || 24) / 24);
  //24  24*2  24*7 24*15

  arr?.map((val, index) => {
    if (!(index % (lengthOf24 * 4))) {
      //显示四分之一日期title
      _mark = { ..._mark, [index]: val };
    } else if (index == arr.length - 1) {
      _mark = { ..._mark, [index]: val };
    }
  });

  return _mark;
};
